package com.wehotel.weschedule.feign;


import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import feign.Logger;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Collection;
import java.util.List;
import java.util.Map;

@Configuration
public class UniFeignConfiguration {

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

    @Bean
    public RequestInterceptor headerInterceptor() {
        return new RequestInterceptor(){

            @Override
            public void apply(RequestTemplate template) {

                template.header("","");
                template.header("","");
            }
        };
    }

}
